﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageLayout.master" AutoEventWireup="true" CodeBehind="frmDiemdanh.aspx.cs" Inherits="BVVD_Website.ql_hoc_tap.frmDiemdanh" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="server">
    <div id="Div1" class="mpBottomContent" runat="server">
        <asp:Label runat="server" ID="lblMenu" Style="margin: 0 auto 0 auto; font-family: 'Microsoft Sans Serif'; font-size: larger; color: forestgreen" Text="Danh sách điểm danh"></asp:Label>

        <table style="margin: 0 auto 0 auto; border: 5px thin red; width: 90% !important; padding: 5px 5px 5px 5px">
            <caption style="float: left">
                <telerik:RadDropDownList DefaultMessage="Chọn lớp" AutoPostBack="true" runat="server" ID="ddlLOPHOC"></telerik:RadDropDownList>
<<<<<<< .mine
                <telerik:RadDropDownList DefaultMessage="Chọn môn" AutoPostBack="true" runat="server" ID="ddlCHONMON"></telerik:RadDropDownList>
                <telerik:RadDatePicker runat="server" DateInput-DateFormat="dd/MM/yyyy"  DateInput-EmptyMessage="Chọn ngày"></telerik:RadDatePicker>
=======
                
>>>>>>> .r15
            </caption>
            <tr>
                <td>
                    <telerik:RadGrid ID="grvDiemdanh"  Skin="Hay" GridLines="None" AllowFilteringByColumn="true" MasterTableView-NoMasterRecordsText="Không tìm thấy bản ghi nào" MasterTableView-ShowHeadersWhenNoRecords="true" ClientSettings-ColumnsReorderMethod="Reorder" ClientSettings-AllowColumnsReorder="true" ClientSettings-Animation-AllowColumnReorderAnimation="true" ClientSettings-Animation-ColumnReorderAnimationDuration="300" PageSize="2" AllowSorting="true" ShowGroupPanel="true" AutoGenerateColumns="false" AllowPaging="false" ClientSettings-AllowDragToGroup="true" runat="server" OnNeedDataSource="grvDiemdanh_NeedDataSource">

                        <PagerStyle Mode="NextPrevAndNumeric"  PageSizeControlType="RadComboBox" Wrap="true" AlwaysVisible="true" />

                        <MasterTableView CommandItemDisplay="Top" EnableNoRecordsTemplate="true" CssClass="MasterClass" ShowFooter="true" EditMode="InPlace" Summary="SUMMARY" ShowHeadersWhenNoRecords="true"
                            DataKeyNames="RECID">
                            <CommandItemSettings ExportToPdfText="Xuất file dạng PDF" ShowExportToPdfButton="true"></CommandItemSettings>
                            <CommandItemSettings ExportToExcelText="XUất file dạng Excel" ShowExportToExcelButton="true"></CommandItemSettings>

                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True"></ExpandCollapseColumn>
                            <NoRecordsTemplate>
                                <div>
                                    Không có bản ghi nào
                                </div>
                            </NoRecordsTemplate>
                            <Columns>
                                <telerik:GridEditCommandColumn EditText="Sửa" ButtonType="ImageButton" HeaderStyle-Width="80">
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn UniqueName="RECID" Display="false" EditFormColumnIndex="1" HeaderStyle-Width="80" ItemStyle-Width="80" ReadOnly="true" HeaderText="RECIDAAAA" DataField="RECID">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text=""></ModelErrorMessage>
                                    </ColumnValidationSettings>
                                    <HeaderStyle ForeColor="Silver" Width="20px"></HeaderStyle>
                                    <ItemStyle ForeColor="Gray"></ItemStyle>
                                </telerik:GridBoundColumn>

                                <telerik:GridTemplateColumn UniqueName="MAHV" HeaderText="Mã học viên" DataField="MAHV">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblMAHV" Text='<%# DataBinder.Eval(Container.DataItem,"MAHV") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label runat="server" ID="lblMAHV1" Text='<%# DataBinder.Eval(Container.DataItem,"MAHV") %>'></asp:Label>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>

                                <telerik:GridTemplateColumn UniqueName="MALH" HeaderText="Mã lớp học" DataField="MALH">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblMALH" Text='<%# DataBinder.Eval(Container.DataItem,"MALH") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label runat="server" ID="lblMALH1" Text='<%# DataBinder.Eval(Container.DataItem,"MALH") %>'></asp:Label>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>

                                <telerik:GridTemplateColumn UniqueName="MAMH" HeaderText="Mã lớp học" DataField="MAMH">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblMAMH" Text='<%# DataBinder.Eval(Container.DataItem,"MAMH") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label runat="server" ID="lblMAMH1" Text='<%# DataBinder.Eval(Container.DataItem,"MAMH") %>'></asp:Label>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>

                                

                                <telerik:GridTemplateColumn UniqueName="TRANGTHAI" HeaderText="Trạng thái" DataField="TRANGTHAI">
                                    <ItemTemplate>
                                        <asp:CheckBox runat="server"  ID="chbTRANGTHAI" Checked='<%# DataBinder.Eval(Container.DataItem,"TRANGTHAI").ToString().Equals("1")?true:false %>'></asp:CheckBox>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:CheckBox runat="server"  ID="chbTRANGTHAI" Checked='<%# DataBinder.Eval(Container.DataItem,"TRANGTHAI").ToString().Equals("1")?true:false %>'></asp:CheckBox>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>





                                <telerik:GridBoundColumn UniqueName="GHICHU" Display="true" HeaderText="Ghi chú" DataField="GHICHU">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text=""></ModelErrorMessage>
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>


                                <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" HeaderStyle-Width="30" ConfirmDialogType="RadWindow" ConfirmTextFormatString="Bạn chắc chắn muốn xóa bản ghi : \n\n \t Mã học viên : {0} <br> \t số tiền :  {1} \n " ConfirmTextFields="MAHV, SOTIEN" ConfirmTitle="Xác nhận xóa" ConfirmText="Xóa, Hủy" Text="Xóa" UniqueName="btnDelete">
                                </telerik:GridButtonColumn>
                            </Columns>
                            <EditFormSettings EditFormType="AutoGenerated" PopUpSettings-ShowCaptionInEditForm="true" PopUpSettings-Width="600" InsertCaption="Thu học phí" PopUpSettings-ZIndex="4000" PopUpSettings-Modal="true" CaptionFormatString="Mã học viên {0}" CaptionDataField="MAHV">
                            </EditFormSettings>
                        </MasterTableView>
                        <ClientSettings>
                            <ClientEvents OnPopUpShowing="PopUpShowing" />
                            <ClientEvents OnRowDblClick="RowDblClick" />
                            <Selecting AllowRowSelect="true" />
                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            <Animation AllowColumnReorderAnimation="true" ColumnReorderAnimationDuration="500" />

                        </ClientSettings>
                        <ExportSettings Excel-Format="Biff" Pdf-DefaultFontFamily="Arial" FileName="Mydata" IgnorePaging="false" Excel-AutoFitImages="true" Excel-FileExtension="xls" HideStructureColumns="true"></ExportSettings>
                    </telerik:RadGrid>
                </td>
            </tr>
        </table>
    </div>

    <telerik:RadNotification ID="rnAlert" runat="server" Position="TopRight" EnableRoundedCorners="true"
        EnableShadow="true" Skin="Hay" Overlay="true" Animation="Fade" AnimationDuration="1000" Title="Thông báo">
    </telerik:RadNotification>

</asp:Content>
